package io.gitee.zhangbinhub.acp.cloud.loadbalancer

import org.noear.solon.cloud.model.Instance
import org.noear.solon.core.handle.Context

interface AcpLoadBalancerAlgorithm {
    fun getServiceId(): String

    @Throws(IllegalStateException::class)
    fun getInstance(context: Context?, instances: MutableList<Instance>): Instance

    companion object {
        const val DEFAULT_SERVICE_ID = "defaultServiceId"
    }
}